package content

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/content/v1"
)

func (c *ControllerV1) SlideshowList(ctx context.Context, req *v1.SlideshowListReq) (res *v1.SlideshowListRes, err error) {
	res = &v1.SlideshowListRes{}
	res.Rows, res.Total, err = service.Slideshow().List(ctx, &req.SlideshowListInput)
	return
}
